package org.lanqiao.tjut.pizzastore;

import org.lanqiao.tjut.pizzas.NYStyleCheesePizza;
import org.lanqiao.tjut.pizzas.NYStyleClamPizza;
import org.lanqiao.tjut.pizzas.NYStylePepperoniPizza;
import org.lanqiao.tjut.pizzas.NYStyleVeggiePizza;
import org.lanqiao.tjut.pizzas.Pizza;

public class NYPizzaStore extends PizzaStore {

	@Override
	Pizza creatPizza(String type) {
		Pizza pizza = null;
		if (type.equals("cheese")) {
			pizza = new NYStyleCheesePizza();
		} else if (type.equals("veggie")) {
			pizza = new NYStyleVeggiePizza();
		} else if (type.equals("clam")) {
			pizza = new NYStyleClamPizza();
		} else if (type.equals("pepperoni")) {
			pizza = new NYStylePepperoniPizza();
		}
		return pizza;
	}
}
